package com.example.demo.listener;

import org.activiti.engine.delegate.DelegateExecution;
import org.activiti.engine.delegate.ExecutionListener;

/**
 *
 */
public class MyExecutionListener implements ExecutionListener {
    @Override
    public void notify(DelegateExecution execution) {
        System.out.println("execution event name : "+execution.getEventName());
        System.out.println("实例 业务逻辑开始处理。。。");
        System.out.println("实例 业务逻辑开始处理。。。");
        try {
            Thread.sleep(6000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("实例 业务逻辑处理完毕！！！");

    }
}
